package com.lgmshare.component.app;

/**
 * 框架配置类
 *
 * @author: lim.
 * @email: lgmshare@gmail.com
 * @Version V1.0
 * @Description
 * @datetime : 2015/5/11 11:32
 */
public final class LaraConfiguration {

    /**
     * 调试模式
     */
    private final boolean enableDebugModel;

    private LaraConfiguration(Builder builder) {
        enableDebugModel = builder.enableDebugModel;
    }

    public boolean isEnableDebugModel() {
        return enableDebugModel;
    }

    public static class Builder {

        private boolean enableDebugModel;

        public Builder() {
            this.enableDebugModel = false;
        }

        public Builder enableDebugModel(boolean enableDebugModel) {
            this.enableDebugModel = enableDebugModel;
            return this;
        }

        public LaraConfiguration build() {
            initEmptyFieldsWithDefaultValues();
            return new LaraConfiguration(this);
        }

        private void initEmptyFieldsWithDefaultValues() {

        }
    }
}
